//文件名为[]包裹，自动生成动态路由，[$]生成动态可选路由
import React from "react";
import { useRouteMatch } from "umi";
export default function(props:any){
    console.log(props)//props和useRouteMatch打印结果一样，都可以获取动态路由参数
    // console.log(useRouteMatch)
    let {params}=props.match
    return(
        <fieldset>
            <legend>动态路由</legend>
            <h1>动态路由参数:{params.id}</h1>
        </fieldset>
    )
}